package com.kang;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @program: service
 * @description:
 * @author: K.faWu
 * @create: 2022-02-17 17:07
 **/
@SpringBootApplication
@EnableDiscoveryClient //服务发现
@EnableEurekaClient //本服务启动后胡自动注册进Eureka服务中
@EnableCircuitBreaker //
@EnableFeignClients
@EnableTransactionManagement //开启事务
@EnableScheduling //定时任务
public class UserApp {
    public static void main(String[] args) {
        SpringApplication.run(UserApp.class, args);
    }
}
